
    <ul class="booking_trail">
        <li class="booking_trail_current">Results</li>
        <li>Booking Details</li>
        <li>Secure Payment</li>
        <li>Booked!</li>
    </ul>




<h2>Search Results</h2>
<?php
if($GLOBALS['note']){
	echo display_message($GLOBALS['note']);
}


?>

<!-- Start search criteria -->
<?php if (count($results["hotels"]) > 0) {  ?>
<div class="box_blue">
<table class="aqua">
    <tr>
        <td width="80"><strong>Destination</strong></td>
        <td width="200"><?= $results['destination_values']['name'].", ".$results['destination_values']['parent_name'] ?></td>
        <td width="80"></td>
        <td width="200"></td>
    </tr>
    <tr>
        <td><strong>Check-in</strong></td>
        <td><?=date("l jS \of F Y", $results["arrival_date"])?></td>
        <td><strong>Rooms</strong></td>
        <td><?=$results["rooms_count"]?></td>
    </tr>
    <tr>
        <td><strong>Check-out</strong></td>
        <td><?=date("l jS \of F Y", $results["arrival_date"]+$results["nights"]*86400)?></td>
        <td><strong>Nights</strong></td>
        <td><?=$results["nights"]?></td>
    </tr>
</table>
</div>
<!-- End search criteria -->

<div class="box_blue">
    <div class="col_results_found" style="text-align: center">
    <p class="no_margin"><strong><?= count($results["hotels"])?></strong> results found</p>
    </div>
    <!--<div class="col_sort_by" style="float: left; ">
    <div style="display:block;float:left"><label>Sort by:</label></div>
    <div style="display:block;float:left">
    <select>
    <option>Name</option>
    </select>
    </div>
    </div>-->
    <div class="clearing"></div>
</div>
<!-- <p style="text-align:center"><strong>[1]</strong> <a href="#">2</a></p> -->
<?php if(count($results["hotels"])): ?>
    <?php foreach($results["hotels"] as $id => $hotel): ?>
        <?php
        /*
        $lurls = new lurls();
        $params['tree_id'] = $hotel["extra"]["tree_id"];
        $hotel_results_lurl = $lurls->get_hotel_result_lurl($params);
        unset($params);
        */
        ?>
        <!-- Start hotel instance -->
        <!-- Start hotel details -->
        <div class="box_margin">
            <div class="col_110">
                <div class='thumb_cover_div'>
                     <a href="/hotels/popup_hotel_details.html?id=<?=$hotel["hotel_id"]?>" class="frame">                                            
                          <img src="<?=$hotel["thumb"]?>" alt="<?=$hotel["hotel_name"]?>" class="thumb_image_100" />                        
                          <img src="/images/thumb_cover_100_74.gif" class="thumb_cover" alt="<?= $hotel['destination']['name'] ?>" />
                     </a>	
                </div>
            </div>
            <div class="col_500">
                <p class="title_big"><?= $hotel["hotel_name"]?></p>
                <p class="title_med"><?= $hotel["hotel_resort"]?>, <?=$hotel["hotel_destination"]?></p>
                <!-- Start rating -->
                <?php // youtravel rating for tests, should use hotel_rating which is currently 0 ?>
                <p class="no_margin"><?= output_rating($hotel['rating'], "star", true); ?>&nbsp;</p>
                <!-- End rating -->
                <p class="no_margin"><?= trim_me($hotel["hotel_description"], 180)?> <a href="/hotels/popup_hotel_details.html?id=<?=$hotel["hotel_id"]?>" class="frame">more &raquo;</a></p>

            </div>
            <div class="clearing"></div>
        </div>
        <!-- End hotel details -->
        <form method="post" action="<?= SECURE_URL ?>/hotels/booking_details.html" id="hotel_book_id_<?=$hotel["hotel_id"]?>">
            <!-- Start hotel rooms -->
            <?php include SITE_ROOT_PATH."/_lib/html/hotel_rooms.php"; ?>
            <div class="form_hotel_book_row">
                <input type="hidden" name="hotel_id" value="<?=$hotel["hotel_id"]?>">
                <input type="hidden" name="sid" value="<?=session_id()?>">
                <input type="image" id="hotel_book_<?=$hotel["hotel_id"]?>" src="/images/button_book_white.gif" disabled="disabled"/>
            </div>
        </form>
        <!-- End hotel rooms -->
        <!-- End hotel instance -->
    <?php endforeach ?>
<?php endif ?>
<?php } else {?> 
        <h>We were unable to find any suitable accommodation for you. Please try to a search using other criteria.</h> <?php }?>
            